<script setup>
import router from "@/router/index.js";
import {getUser} from "@/components/userInfo.js";

</script>

<template>
    <div class="sup-header">
        <h1 class="sup-title">你好，管理员-{{getUser.username}}</h1>

        <el-button
            @click="router.push('/')"
            style="margin-right: 20px"
            type="primary"
            text>返回主页面
        </el-button>
    </div>
</template>

<style scoped lang="scss">
.sup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.sup-title {
    line-height: 60px;
    font-weight: 600;
    padding-left: 20px;
    color: #777373;
}
</style>